Different result from AdWords API and GoogleAds API for Serving Status

129 views
Skip to first unread message

Estanislao Ledesma

unread,
Sep 13, 2021, 12:08:08 PM9/13/21
to AdWords API and Google Ads API Forum
Hi,
I created campaigns in Google Ads API and AdWords API with the same parameters and I got different Serving status (for GA API UNSPECIFIED and AdWords API PENDING). The same happens when I try to update the same campaign.
Thanks in advance,
Estanislao

Google Ads API Forum Advisor

unread,
Sep 14, 2021, 4:15:27 PM9/14/21
to estanisla...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. As the AdWords API will sunset next April, we recommend using the Ads API exclusively. Can you please provide us with the complete request and response logs for the Ads API call showing the pending serving status for the campaign?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2NThTI:ref

Estanislao Ledesma

unread,
Sep 20, 2021, 9:57:12 AM9/20/21
to AdWords API and Google Ads API Forum
Already sent it.

Google Ads API Forum Advisor

unread,
Sep 21, 2021, 9:51:40 AM9/21/21
to estanisla...@gmail.com, adwor...@googlegroups.com
Hi Estanislao,

Thanks for providing the logs. However, I'm not seeing the unspecified status you mentioned for the Google Ads API request. Can you please show us how/where that status is presenting so we can have a look?

Looking in the account, I see a bunch of successfully created 'Interplanetary Cruise' campaigns

jian.hu

unread,
Sep 21, 2021, 10:15:42 AM9/21/21
to ads...@forumsupport.google, estanisla...@gmail.com, adwor...@googlegroups.com

Hello,

 

Thanks for your reply, I copy all infos, please let me know if you have any question ->

 

Client library version: 11
Google Ads API version: 8
My environment: php / laravel
PHP version: 7.4
System: Linux debian 4.19.0-17-amd64 
#1 SMP Debian 4.19.194-3 (2021-07-18) x86_6415:48
grpc:1.25.015:50, protobuf:3.18.016:13

Description bug:
I want to create a new campaign shopping standard with your example:
https://developers.google.com/google-ads/api/docs/shopping-ads/create-campaign

It doesn't work, and it return an error:

Google\Ads\GoogleAds\Lib\V8\GoogleAdsException

{
"message": "Request contains an invalid argument.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"
@type": "google.ads.googleads.v8.errors.googleadsfailure-bin",
"data": "Unknown Binary Data"
},
{
"
@type": "grpc-status-details-bin",
"data": "Unknown Binary Data"
},
{
"
@type": "request-id",
"data": "Zqm7_UbKemvE7TxzKWDMnA"
}
]
}

at vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/Lib/V8/GoogleAdsExceptionTrait.php:75
71
'previous' => $exception->getPrevious(),
72
'metadata' => $exception->getMetadata(),
73
'basicMessage' => $exception->getBasicMessage()
74
];
75 return new GoogleAdsException($exception, $googleAdsFailure, $optionalArgs);
76
}
77
}
78

but if I want to create a campaign with AdvertisingChannelType::SERACH, it works very will, could you look this problem ?

Thanks very much

 

 

De : adwor...@googlegroups.com [mailto:adwor...@googlegroups.com] De la part de Google Ads API Forum Advisor
Envoyé : mardi 21 septembre 2021 15:51
À : estanisla...@gmail.com
Cc : adwor...@googlegroups.com
Objet : Re: Different result from AdWords API and GoogleAds API for Serving Status

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/p21Ta000000000000000000000000000000000000000000000QZSEHN00gRQfvxQcSjaV4_KtWjhHlQ%40sfdc.net.

Estanislao Ledesma

unread,
Sep 23, 2021, 10:16:38 AM9/23/21
to AdWords API and Google Ads API Forum
Hi,
If I make this request:
operations {
  create {
    status: PAUSED
    advertising_channel_type: SEARCH
    network_settings {
      target_google_search: true
      target_search_network: true
      target_content_network: false
      target_partner_search_network: false
    }
    target_spend {
    }
    name: "Interplanetary Cruise #2021-09-23T11:11:00.240-0300"
    campaign_budget: "customers/9938855968/campaignBudgets/9536671668"
    start_date: "20211028"
    end_date: "20211120"
  }
}
partial_failure: true
response_content_type: MUTABLE_RESOURCE

I get this response:
campaign {
    resource_name: "customers/9938855968/campaigns/14746306003"
    status: PAUSED
    ad_serving_optimization_status: OPTIMIZE
    advertising_channel_type: SEARCH
    network_settings {
      target_google_search: true
      target_search_network: true
      target_content_network: false
      target_partner_search_network: false
    }
    geo_target_type_setting {
      positive_geo_target_type: PRESENCE_OR_INTEREST
      negative_geo_target_type: PRESENCE
    }
    payment_mode: CLICKS
    name: "Interplanetary Cruise #2021-09-23T11:11:00.240-0300"
    id: 14746306003
    campaign_budget: "customers/9938855968/campaignBudgets/9536671668"
    start_date: "2021-10-28"
    end_date: "2021-11-20"
  }
}

Failure message: null
Status: Status{code=OK, description=null, cause=null}.

As you can see, in the response campaign there's no field campaign_serving_status, i.e., when I do this java code:
MutateCampaignsResponse response =
                    campaignServiceClient.mutateCampaigns(request);
            System.out.printf("Added %d campaigns:%n", response.getResultsCount());
            for (MutateCampaignResult result : response.getResultsList()) {
                System.out.println(result.getResourceName());
                System.out.println(result.getCampaign().getServingStatus());
            }
The last line (System.out.println(result.getCampaign().getServingStatus());) prints: UNSPECIFIED. While if I make the same request in AdWords API, I get PENDING.
Hope this clarifies the issue.
Thanks,
Estanislao

Google Ads API Forum Advisor

unread,
Sep 26, 2021, 10:14:55 PM9/26/21
to estanisla...@gmail.com, adwor...@googlegroups.com
Hi Estanislao,

I am also a member of Google Ads API team and let me provide support to your concern.

Could you try to execute the below query so that we can see the actual serving status that the API is returning for that campaign? If the value is still UNSPECIFIED, then please provide the complete request and response logs with the request-id for this query report.

SELECT campaign.id, campaign.name, campaign.serving_status FROM campaign WHERE campaign.id = ENTER_CAMPAIGN_ID_HERE

Please send the requested details via the Reply privately to author option again.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2NThTI:ref

Estanislao Ledesma

unread,
Sep 28, 2021, 8:13:38 AM9/28/21
to AdWords API and Google Ads API Forum
Hi,
When I do that query I get the expected PENDING status. So the resut from the campaign creation is not correct, I'll have to make two requests when I create a campaign. Thanks for the info.

Google Ads API Forum Advisor

unread,
Sep 29, 2021, 1:16:51 AM9/29/21
to estanisla...@gmail.com, adwor...@googlegroups.com

Hello Estanislao,

Thanks for getting back to us.

As requested by Ernie from the previous thread, would you be able to share to us the complete logs generated for both AdWords API and Google Ads API? Once provided, we will raise this with the team for further checking.

Please send the requested details via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2NThTI:ref

Estanislao Ledesma

unread,
Oct 27, 2021, 9:20:28 AM10/27/21
to AdWords API and Google Ads API Forum
Done, already sent it.

Regards,
Estanislao

Reply all
Reply to author
Forward
0 new messages