Custom Affinity ID through Google Ads Beta API?

2019-09-23 Thread 'Matthew Fleming' via AdWords API and Google Ads API Forum
Hi,

Is it possible to get the id for the custom affinity audience that's 
already been created, either through the UI or API?

Thanks!

-Matt

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4be2bc39-81bb-4071-9f6b-ee1ff01c7cf4%40googlegroups.com.


Ads API Code Sample: response ads in python

2019-09-18 Thread 'Matthew Fleming' via AdWords API and Google Ads API Forum
Hi,

Are there any python samples available for creating responsive display ads? 
If not, can someone create a very simple example for setting variable 
values?

I've done a fair bit of Googling (including this thread 
)
 
and the expanded text ad example isn't really cutting it in terms of 
documentation.

I've followed this code for setting var values, but it's producing an error 
"AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' 
object has no attribute 'asset'"

## setting variable values.

ad_group_ad.ad.responsive_display_ad.marketing_images.asset.value = ''
ad_group_ad.ad.responsive_display_ad.headlines.text.value = "headline1  text"
ad_group_ad.ad.responsive_display_ad.headlines.pinned_field = 
client.get_type('ServedAssetFieldTypeEnum',version='v1').HEADLINE_1
ad_group_ad.ad.long_headline.text.value = "long_headline text "
ad_group_ad.ad.long_headline.pinned_field = 
client.get_type('ServedAssetFieldTypeEnum',version='v1').HEADLINE_2
ad_group_ad.ad.descriptions.text.value= " Descriptions text "
ad_group_ad.ad.descriptions.pinned_field  = 
client.get_type('ServedAssetFieldTypeEnum', version='v1').DESCRIPTION_1
ad_group_ad.ad.business_name.value= "Buisness name text "


Thanks!
-Matt

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/62cab3e1-5dae-4486-917d-d7afc51d4f1e%40googlegroups.com.


Re: create app campaign using API beta has error MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT

2019-09-16 Thread 'Matthew Fleming' via AdWords API and Google Ads API Forum
Had the same exact issue while following the documentation.

Here's what worked for me.

Add login_customer_id to your google-ads.yaml file. It should have the id 
associated with your MCC. 
Then, the *customer* *id* is the id of the client test account you're 
trying to access.

-Matt

On Monday, September 16, 2019 at 6:02:58 AM UTC-4, Naomi Shao wrote:
>
> Hi,
>
> I am trying to create an app campaign with the new API. I tried with both 
> Java and Python, getting the same error message as below. The error message 
> in Java is MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT, I don't understand 
> what exactly I am trying to "mutate"? Basically I think the mutation is 
> creating campaign and budget. I used the sample code of add_campaigns.py 
> which came with the client lib as reference.
>
> Attached is the python script, pls take a look and help! Thx!!
>
> Request made: ClientCustomerId: 9189232388, Host: 
> googleads.googleapis.com:443, Method: 
> /google.ads.googleads.v2.services.CampaignService/MutateCampaigns, 
> RequestId: mGoLwJYa1kppmiEsJYGjPg, IsFault: True, FaultMessage: A mutate 
> action is not allowed on this campaign, from this client.
>
> Request with ID "mGoLwJYa1kppmiEsJYGjPg" failed with status 
> "INVALID_ARGUMENT" and includes the following errors:
>
> Error with message "A mutate action is not allowed on this campaign, from 
> this client.".
>
> On field: operations
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3101971b-56d3-48d8-833d-0ba51250bae8%40googlegroups.com.