Search in sources :

Example 1 with Operand

use of com.google.api.ads.adwords.jaxws.v201809.cm.Operand in project googleads-java-lib by googleads.

the class BatchJobHelperTest method assertDownloadResponse.

@Override
protected void assertDownloadResponse(BatchJobMutateResponse downloadResponse) {
    assertEquals("Wrong # of mutate results", 1, downloadResponse.getMutateResults().length);
    Operand operand = downloadResponse.getMutateResults()[0].getOperand();
    Campaign campaign = operand.getCampaign();
    assertEquals("ID is incorrect", Long.valueOf(12345L), campaign.getId());
    assertEquals("Status is incorrect", CampaignStatus.PAUSED, campaign.getStatus());
}
Also used : Campaign(com.google.api.ads.adwords.jaxws.v201809.cm.Campaign) Operand(com.google.api.ads.adwords.jaxws.v201809.cm.Operand)

Example 2 with Operand

use of com.google.api.ads.adwords.jaxws.v201809.cm.Operand in project googleads-java-lib by googleads.

the class BatchJobHelperTest method assertDownloadResponse.

@Override
protected void assertDownloadResponse(BatchJobMutateResponse downloadResponse) {
    assertEquals("Wrong # of mutate results", 1, downloadResponse.getMutateResults().length);
    Operand operand = downloadResponse.getMutateResults()[0].getOperand();
    Campaign campaign = operand.getCampaign();
    assertEquals("ID is incorrect", Long.valueOf(12345L), campaign.getId());
    assertEquals("Status is incorrect", CampaignStatus.PAUSED, campaign.getStatus());
}
Also used : Campaign(com.google.api.ads.adwords.axis.v201809.cm.Campaign) Operand(com.google.api.ads.adwords.axis.v201809.cm.Operand)

Aggregations

Campaign (com.google.api.ads.adwords.axis.v201809.cm.Campaign)1 Operand (com.google.api.ads.adwords.axis.v201809.cm.Operand)1 Campaign (com.google.api.ads.adwords.jaxws.v201809.cm.Campaign)1 Operand (com.google.api.ads.adwords.jaxws.v201809.cm.Operand)1