Search in sources :

Example 16 with String_ValueMapEntry

use of com.google.api.ads.admanager.axis.v202108.String_ValueMapEntry in project googleads-java-lib by googleads.

the class StatementBuilder method toStatement.

/**
 * Gets the {@link Statement} representing the state of this statement builder.
 *
 * @return the {@link Statement}
 */
public Statement toStatement() {
    Statement statement = new Statement();
    statement.setQuery(queryBuilder.buildQuery());
    statement.setValues(Maps.toList(queryBuilder.getBindVariableMap(), String_ValueMapEntry.class).toArray(new String_ValueMapEntry[] {}));
    return statement;
}
Also used : String_ValueMapEntry(com.google.api.ads.admanager.axis.v202108.String_ValueMapEntry) Statement(com.google.api.ads.admanager.axis.v202108.Statement)

Aggregations

Test (org.junit.Test)12 Statement (com.google.api.ads.admanager.axis.v202105.Statement)4 String_ValueMapEntry (com.google.api.ads.admanager.axis.v202105.String_ValueMapEntry)4 Statement (com.google.api.ads.admanager.axis.v202108.Statement)4 String_ValueMapEntry (com.google.api.ads.admanager.axis.v202108.String_ValueMapEntry)4 Statement (com.google.api.ads.admanager.axis.v202111.Statement)4 String_ValueMapEntry (com.google.api.ads.admanager.axis.v202111.String_ValueMapEntry)4 Statement (com.google.api.ads.admanager.axis.v202202.Statement)4 String_ValueMapEntry (com.google.api.ads.admanager.axis.v202202.String_ValueMapEntry)4