Googleadwords API permission error

218 views
Skip to first unread message

Nancy Turner

unread,
Oct 16, 2020, 6:45:10 AM10/16/20
to AdWords API and Google Ads API Forum
Hello,
I am working on adwords API to create campaign.
I have create test account and connect test account with other test acooun.

I have created credentials using console loign and token create using terminal.

https://developers.google.com/adwords/api/docs/samples/php/basic-operations

I am trying to run AddCampaign example. 

getting error :  ADD_OPERATION_NOT_PERMITTED

Can you please help and let me know if need any details.

Thank you
Nancy

Nancy Turner

unread,
Oct 16, 2020, 7:48:57 AM10/16/20
to AdWords API and Google Ads API Forum
Hello Team,

I have read the document and created test account, but do I need to connect it from the manager account (production), If yes how can I do that?

Also when I try to create customer client account, I am not able to do it, it provide following error:

image.png

When I am running API it is giving error : https://www.screencast.com/t/FxsuPUqnJa3

I am sure this error is because of the customer client account not connected. Please guide us how we can do it.

I am expecting a bit fast reply from your side.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ce41e9f4-5e02-4693-8357-8a985632a2c9n%40googlegroups.com.

Google Ads API Forum Advisor Prod

unread,
Oct 16, 2020, 3:35:35 PM10/16/20
to nancy.m...@gmail.com, adwor...@googlegroups.com

Hi Nancy,

Thank you for reaching out. Could you please share the complete request and response logs for us to further investigate? Please enable logging by following this guide. You could not link a test account to a production account. To create a test client customer account, you could use this code example.

Thanks and regards,
Xiaoming, Google Ads API Team



Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q269mUS:ref

Google Ads API Forum Advisor Prod

unread,
Oct 16, 2020, 3:39:19 PM10/16/20
to nancy.m...@gmail.com, adwor...@googlegroups.com
Hi Nancy,

Please share the complete request and response logs via the Reply privately to author option.
Message has been deleted

Nancy Turner

unread,
Oct 19, 2020, 10:25:14 AM10/19/20
to AdWords API and Google Ads API Forum
Hello,


I have created account as per your previous mail link and account created successfully.
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/AccountManagement/CreateAccount.php
https://prnt.sc/v26jku

Then I have added this customer ID(8511270984) in adsapi_php.ini file and run Addcampaign file.
https://prnt.sc/v26xiv  

Here campaign added successfully but it didnot showing on test account or production account.
Campaing not showing on account campaign listing :https://prnt.sc/v2dli4
Can you please help here.

I have attached soap.log file.
soap.log

Google Ads API Forum Advisor Prod

unread,
Oct 19, 2020, 4:14:17 PM10/19/20
to nancy.m...@gmail.com, adwor...@googlegroups.com

Hi Nancy,

Thanks for reaching out. I’m able to see the campaigns you created in the account 8511270984. To be able to see the test client accounts under the test manager account, you would need to click on the down arrow next to the test manager account number and then on the drop-down list click on the three dots icon and select cancelled accounts. 



Thanks and regards,
Xiaoming, Google Ads API Team


Nancy Turner

unread,
Oct 20, 2020, 5:11:39 AM10/20/20
to AdWords API and Google Ads API Forum
Hello

Thanks for reply. I able to test client account and campaign in list table.

Now i want to update and delete this campaign using API.

Can you please suggest Update and Delete campaign example in Adwords API.

Thank you,
Nancy

Nancy Turner

unread,
Oct 20, 2020, 8:49:11 AM10/20/20
to AdWords API and Google Ads API Forum
Hello

I have create test file and set AddCampaign example in it.
This file code working on test file and add campaign in client account successfully.

Now i am trying to set this example code in my function like below.
https://prnt.sc/v325dn

But OOP concept not working inside function().
Can you please help here and reply fast to fix issue. 
Thank you
Nancy, 

Google Ads API Forum Advisor Prod

unread,
Oct 20, 2020, 12:42:24 PM10/20/20
to nancy.m...@gmail.com, adwor...@googlegroups.com

Hi Nancy,

Thanks for reaching out. Please refer to this code example on how to update a campaign and this code example for how to delete a campaign. For your second question, please try to move the class AddCampains outside the function. Alternatively, you could call the methods in the AddCampains class from your customized function.



Thanks and regards,
Xiaoming, Google Ads API Team



Nancy Turner

unread,
Oct 28, 2020, 7:03:17 AM10/28/20
to AdWords API and Google Ads API Forum
Hello,

I am working on update campaign adsgroup and adssearch ads.
I have updated campaign name using UpdateCampaign API and it is working successfully.

Now my query is I have Campaign ID in page now how to get adsgroup ID on base of Campaign ID?
Please see screenshow for more idea : https://prnt.sc/v8knne

I have another query for ads create and update.
namespace Google\AdsApi\Examples\AdWords\v201809\BasicOperations;
In  BasicOperations  folder i get below list of examples. I have used "AddResponsiveSearchAd" example for ads create.
Now i want to update those ads so which update ads example should use?
https://prnt.sc/v8kofr

For Ads Add two types available 1] AddResponsiveSearchAd ans 2] AddExpandedTextAds
Is there any major different in between above ads.

Can you please clear my queries and reply me as soon as possible.

Thank you in advance

Google Ads API Forum Advisor Prod

unread,
Oct 28, 2020, 2:55:18 PM10/28/20
to nancy.m...@gmail.com, adwor...@googlegroups.com

Hi Nancy,

Thank you for reaching out. Please find my response to your questions below:
 

  1. You could query the Adgroup Performance Report to get the AdGroupId by specifying the CampaignId in the WHERE clause.
     

  2. You could use this code example as a template to update the responsive ad.
     

  3. ExpandedTextAd is essentially a text ad. It includes two headlines, a description of your product or service, navigational breadcrumbs, and a generated visible URL. ResponsiveSearchAd is an ad format that supports multiple assets for text fields. Google Ads uses serving-time optimization to select the best asset and rendering combinations for each request. You could see the available ad types here

Nancy Turner

unread,
Oct 29, 2020, 4:56:07 AM10/29/20
to AdWords API and Google Ads API Forum
Hello,

Thank you for your help.

I have got adsgroupID using campaignID and it is working for me.

2. You could use this code example as a template to update the responsive ad. 

This example is for "UpdateExpandedTextAd"  and i have used ads Add using "AddResponsiveSearchAd" example.

Now i am tring to udate Searchad using expandedtextAd API so it is not working.

Can you please prove me link of SearchAd update API example.
https://www.screencast.com/t/VljoTybQOU

I hope so you are getting my point. Please let me know if any question.

Regards,
Nancy

Google Ads API Forum Advisor Prod

unread,
Oct 29, 2020, 2:34:02 PM10/29/20
to nancy.m...@gmail.com, adwor...@googlegroups.com

Hi Nancy,

Thank you for reaching out. I told you to use it as a template rather than use exactly the same code to update the ad. When you update the ResponsiveSearchAd, you have to change this line of code to this. And also change the other parts in the sample code accordingly.



Thanks and regards,
Xiaoming, Google Ads API Team


Nancy Turner

unread,
Oct 30, 2020, 5:25:29 AM10/30/20
to AdWords API and Google Ads API Forum
Hello
Thank you for help.
I have some queries as below. 

1] I want to add campaign with images and many more field of form but in AddCampaign API providing only add campaign name (same issue in update API).
    Can you please suggest me too how to add all field in google ads.

2] I want to permanently delete old created campaigns, adsgroups and ads into  google.
    So how to delete it? And, any have any condition in getcampaign API to not retrive removed campaign?
    https://prnt.sc/v9yq38

 3] I am searching youtube campaign create API.
     Can you please guide me for youtube same as google campaign.
I hope so you are getting my point's.

Thank you in advance.
Nancy

Google Ads API Forum Advisor Prod

unread,
Oct 30, 2020, 3:42:18 PM10/30/20
to nancy.m...@gmail.com, adwor...@googlegroups.com

Hi Nancy,

Thank you for reaching out. Please find my response to your questions below:

 

  1. The ResponsiveSearchAd has headline, description and path as its fields. You could refer to this code on how to set these fields.
     

  2. Please use this code example to remove a campaign. For removed campaigns, you could only retrieve them when you specify the CampaignStatus to include “REMOVED”. 
     

  3. The Video Campaigns are supported only in reports. The API does not expose functionalities to create/manage video campaigns.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages