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
El martes, 21 de septiembre de 2021 a las 11:15:42 UTC-3, [email protected]
escribió:
> 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
> <https://github.com/googleads/google-ads-php/pull/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* <https://github.com/type>":
> "google.ads.googleads.v8.errors.googleadsfailure-bin",
> "data": "Unknown Binary Data"
> },
> {
> "*@type* <https://github.com/type>": "grpc-status-details-bin",
> "data": "Unknown Binary Data"
> },
> {
> "*@type* <https://github.com/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 :* [email protected] [mailto:[email protected]] *De
> la part de* Google Ads API Forum Advisor
> *Envoyé :* mardi 21 septembre 2021 15:51
> *À :* [email protected]
> *Cc :* [email protected]
> *Objet :* Re: Different result from AdWords API and GoogleAds API for
> Serving Status
>
>
>
> 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
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo]
>
> *Matt*
>
> Google Ads API Team
>
>
>
>
>
> ref:_00D1U1174p._5004Q2NThTI:ref
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/p21Ta000000000000000000000000000000000000000000000QZSEHN00gRQfvxQcSjaV4_KtWjhHlQ%40sfdc.net
>
> <https://groups.google.com/d/msgid/adwords-api/p21Ta000000000000000000000000000000000000000000000QZSEHN00gRQfvxQcSjaV4_KtWjhHlQ%40sfdc.net?utm_medium=email&utm_source=footer>
> .
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/128fac57-72b8-47b5-81d8-1adf8fed7d46n%40googlegroups.com.